Declare Function showcursor Lib "User" (ByVal fShow As Integer) As Integer
Declare Function SystemParametersInfo Lib "User" (ByVal uAction As Integer, ByVal uParam As Integer, ByVal lpvParam As Any, ByVal fuWinIni As Integer) As Integer
Declare Function WritePrivateProfileString Lib "Kernel" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpSetString As String, ByVal lpFileName As String) As Integer
Declare Function GetPrivateProfileString Lib "Kernel" (ByVal Section As String, ByVal entry As String, ByVal default As String, ByVal txtbuffer As String, ByVal sizebuffer As Integer, ByVal filename As String) As Integer
Declare Function WinHelp Lib "User" (ByVal hWnd As Integer, ByVal lpHelpFile As String, ByVal wCommand As Integer, dwData As Any) As Integer
Declare Function GetModuleUsage% Lib "Kernel" (ByVal hModule%)
Global xx As Integer
Global PasswordDslyd As Integer
Global prev_PasswordDslyd As Integer
Global time_cnt As Integer
Global time_set As Integer
Global mousecnt As Long
Global Oldx As Integer
Global Oldy As Integer
Global FIRST_TIME As Integer
Global tmp As Integer
Global Const HELP_CONTEXT = &H1
Global Const HELP_QUIT = &H2
Global Const HELP_CONTENTS = &H3
Global Const HELP_HELPONHELP = &H4
Global PWProtected As String * 1
Sub All_Done ()
If (PWProtected = "Y") Then
'x% = Shell("C:\WINDOWS\GETPSWD.EXE")
If (PasswordDslyd = 0) Then
x% = Shell("C:\WINDOWS\SYSTEM\GETPSWD.EXE")
PasswordDslyd = 1
While GetModuleUsage(x%) > 0 ' Has Shelled program finished?